package cn.sccl.dirms.monitor.model;

/**
 * Created by liupan on 2017/4/13.
 * Host 主机实体类
 */
public class Interface {
    private String type; // 类型，1：agent, 2: SNMP, 3: IPMI, 4: JMX
    private String main = "1"; // 是否默认使用，1：默认，0：否
    private String useip = "1"; // 连接方式是否使用ip, 1: 使用， 0：使用dnsname
    private String ip; // 监控ip, 如果为空使用 dns
    private String dns; // dns
    private String port; // 接口连接的端口号

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getMain() {
        return main;
    }

    public void setMain(String main) {
        this.main = main;
    }

    public String getUseip() {
        return useip;
    }

    public void setUseip(String useip) {
        this.useip = useip;
    }

    public String getIp() {
        return ip;
    }

    public void setIp(String ip) {
        this.ip = ip;
    }

    public String getDns() {
        return dns;
    }

    public void setDns(String dns) {
        this.dns = dns;
    }

    public String getPort() {
        return port;
    }

    public void setPort(String port) {
        this.port = port;
    }
}
